package com.th.supcom.pds.domain.pojo;

import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * PdsInpPhamAtmRec Pojo对象.
 * 
 * 摆药机白药记录.
 */
public class InpPhamAtmRec implements java.io.Serializable
{
    private static final long serialVersionUID = 1L;

    /** 生成规则为医嘱执行与摆药记录ID，如有多个ID用“,”（逗号为英文）进行分隔,就是二维码编码. */
    private String m_inpPhamAtmRecId;

    /** ATM机器主键. */
    private Long m_atmId;

    /** 药房. */
    private String m_dispensary;

    /** 生成时间. */
    private Date m_enterDatetime;

    /** 读取标志. */
    private String m_readIndicator;

    /** 读取时间. */
    private Date m_readDatetime;

    /** 患者住院流水号. */
    private Long m_paiVisitId;

    /**
     * 默认构造器 .
     */
    public InpPhamAtmRec ()
    {
    }

    /**
     * 获取生成规则为医嘱执行与摆药记录ID，如有多个ID用“,”（逗号为英文）进行分隔,就是二维码编码属性.
     * 
     */
    public String getInpPhamAtmRecId ()
    {
        return m_inpPhamAtmRecId;
    }

    /**
     * 设置生成规则为医嘱执行与摆药记录ID，如有多个ID用“,”（逗号为英文）进行分隔,就是二维码编码属性.
     * 
     * @param inpPhamAtmRecId.
     */
    public void setInpPhamAtmRecId (String inpPhamAtmRecId)
    {
        m_inpPhamAtmRecId = inpPhamAtmRecId;
    }

    /**
     * 获取ATM机器主键属性.
     * 
     */
    public Long getAtmId ()
    {
        return m_atmId;
    }

    /**
     * 设置ATM机器主键属性.
     * 
     * @param atmId.
     */
    public void setAtmId (Long atmId)
    {
        m_atmId = atmId;
    }

    /**
     * 获取药房属性.
     * 
     */
    public String getDispensary ()
    {
        return m_dispensary;
    }

    /**
     * 设置药房属性.
     * 
     * @param dispensary.
     */
    public void setDispensary (String dispensary)
    {
        m_dispensary = dispensary;
    }

    /**
     * 获取生成时间属性.
     * 
     */
    public Date getEnterDatetime ()
    {
        if (m_enterDatetime == null)
        {
            return null;
        }
        return (Date) m_enterDatetime.clone ();
    }

    /**
     * 设置生成时间属性.
     * 
     * @param enterDatetime.
     */
    public void setEnterDatetime (Date enterDatetime)
    {
        if (enterDatetime == null)
        {
            m_enterDatetime = null;
        }
        else
        {
            m_enterDatetime = (Date) enterDatetime.clone ();
        }
    }

    /**
     * 获取读取标志属性.
     * 
     */
    public String getReadIndicator ()
    {
        return m_readIndicator;
    }

    /**
     * 设置读取标志属性.
     * 
     * @param readIndicator.
     */
    public void setReadIndicator (String readIndicator)
    {
        m_readIndicator = readIndicator;
    }

    /**
     * 获取读取时间属性.
     * 
     */
    public Date getReadDatetime ()
    {
        if (m_readDatetime == null)
        {
            return null;
        }
        return (Date) m_readDatetime.clone ();
    }

    /**
     * 设置读取时间属性.
     * 
     * @param readDatetime.
     */
    public void setReadDatetime (Date readDatetime)
    {
        if (readDatetime == null)
        {
            m_readDatetime = null;
        }
        else
        {
            m_readDatetime = (Date) readDatetime.clone ();
        }
    }

    /**
     * 获取患者住院流水号属性.
     * 
     */
    public Long getPaiVisitId ()
    {
        return m_paiVisitId;
    }

    /**
     * 设置患者住院流水号属性.
     * 
     * @param paiVisitId.
     */
    public void setPaiVisitId (Long paiVisitId)
    {
        m_paiVisitId = paiVisitId;
    }

    /**
     * 打印字符串.
     * 
     * @return 打印.
     */
    public String toString ()
    {
        StringBuffer sb = new StringBuffer (100);
        sb.append ("---------------------------------- start ----------------------------------");
        sb.append ("inpPhamAtmRecId:" + m_inpPhamAtmRecId + " atmId:" + m_atmId + " dispensary:" + m_dispensary);
        sb.append ("enterDatetime:" + m_enterDatetime + " readIndicator:" + m_readIndicator + " readDatetime:" + m_readDatetime);
        sb.append ("paiVisitId:" + m_paiVisitId);

        sb.append ("----------------------------------  end  ----------------------------------");
        return sb.toString ();
    }

    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (InpPhamAtmRec.class);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}